
pkgname=swig
pkgver=3.0.12
pkgrel=1
pkgdesc="A compiler that makes it easy to integrate C and C++ code with scripting languages"
arch=('x86_64')
url="http://www.swig.org/"
license=('custom')
depends=('pcre' 'zlib')
source=("https://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz")  
md5sums=('82133dfa7bba75ff9ad98a7046be687c')

build() {
  cd ${pkgname}-${pkgver}
  
  ./configure --prefix=/usr
  make
}

package() {
  cd ${pkgname}-${pkgver}
  make DESTDIR=${pkgdir} install

  cd ${srcdir}/${pkgname}-${pkgver}
  install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
  install -D -m644 LICENSE-UNIVERSITIES ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-UNIVERSITIES
}

